package com.reform.service;

import com.reform.pojo.expert.Label;
import com.baomidou.mybatisplus.extension.service.IService;
import com.reform.res.Result;

import java.sql.SQLException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author mortale
 * @since 2021-08-12
 */
public interface ILabelService extends IService<Label> {

    /**
     * 创建标签
     * @param labelName
     * @return
     */
    Result creatLabel(String labelName) throws SQLException;

    /**
     * 删除标签
     * @param labelId
     * @return
     */
    Result deleteLabel(Integer labelId) throws SQLException;

    /**
     * 编辑标签
     * @param labelId
     * @param labelName
     * @return
     */
    Result updateLabel(Integer labelId, String labelName) throws SQLException;

    /**
     * 获取所有标签
     * @return
     */
    Result getLabels() throws SQLException;
}
